package org.gitman.agentplatform.ui.actions;

import java.awt.event.ActionEvent;

import org.gitman.agentplatform.core.PlatformManager;

public class FinishEditingAction extends UIAction{

	public FinishEditingAction(){
		super("Finish Editing");
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		graphEditor.finishEditing();
		PlatformManager.getInstatnce().getSimulation().setGraph(graphEditor.getGraphModel());
	}

}
